package com.example.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————转班差价类
 * @date 2019-12-17 17:04
 */
@Entity
@Table(name = "transfer_classes_price")
public class TransferClassesPrice implements Serializable {

    private static final long serialVersionUID = -4938119742664408262L;

    @Id
    @GeneratedValue
    @Column(name = "transfer_price_Id")
    private Integer transferPriceId;//转班差价ID

    @Column(name = "transfer_Id")
    private Integer transferId;//转班ID

    @Column(name = "charge_type_Id")
    private Integer chargeTypeId;//费用ID

    @Column(name = "originalClassMoney", length = 10)
    private BigDecimal originalClassMoney;//原有金额

    @Column(name = "nowClassMoney", length = 10)
    private BigDecimal nowClassMoney;//现有班级

    @Column(name = "priceSpread", length = 10)
    private BigDecimal priceSpread;//差价

    @Column(name = "status", length = 10)
    private String status;//状态

    @Column(name = "comment", length = 255)
    private String comment;//备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;//创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;//更新记录时间


    public TransferClassesPrice() {
        //无参构造
    }


    public Integer getTransferPriceId() {
        return transferPriceId;
    }


    public void setTransferPriceId(Integer transferPriceId) {
        this.transferPriceId = transferPriceId;
    }


    public Integer getChargeTypeId() {
        return chargeTypeId;
    }


    public void setChargeTypeId(Integer chargeTypeId) {
        this.chargeTypeId = chargeTypeId;
    }


    public Integer getTransferId() {
        return transferId;
    }


    public void setTransferId(Integer transferId) {
        this.transferId = transferId;
    }


    public BigDecimal getOriginalClassMoney() {
        return originalClassMoney;
    }

    public void setOriginalClassMoney(BigDecimal originalClassMoney) {
        this.originalClassMoney = originalClassMoney;
    }

    public BigDecimal getNowClassMoney() {
        return nowClassMoney;
    }

    public void setNowClassMoney(BigDecimal nowClassMoney) {
        this.nowClassMoney = nowClassMoney;
    }

    public BigDecimal getPriceSpread() {
        return priceSpread;
    }

    public void setPriceSpread(BigDecimal priceSpread) {
        this.priceSpread = priceSpread;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }


    @Override
    public String toString() {
        return "TransferClassesPrice [transferPriceId=" + transferPriceId + ", transferId=" + transferId
                + ", chargeTypeId=" + chargeTypeId + ", originalClassMoney=" + originalClassMoney + ", nowClassMoney="
                + nowClassMoney + ", priceSpread=" + priceSpread + ", status=" + status + ", comment=" + comment
                + ", recordTime=" + recordTime + ", updateTime=" + updateTime + "]";
    }

}
